/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package cn.linshu.shiro.jwt.service.impl;

import cn.linshu.shiro.jwt.entity.SysUserEntity;
import cn.linshu.shiro.jwt.mapper.SysUserMapper;
import cn.linshu.shiro.jwt.service.SysUserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


/**
 * 系统用户
 *
 * @author Mark sunlightcs@gmail.com
 */
@Service("sysUserService")
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserEntity> implements SysUserService {

	@Override
	public SysUserEntity queryByUserName(String username) {
		QueryWrapper<SysUserEntity> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("username", username);
		return baseMapper.selectOne(queryWrapper);
	}
}
